home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp48hor2 / filter.doc < prev    next >
Text File  |  1995-03-31  |  3KB  |  74 lines

  1. (Comp.sys.handhelds) 
  2. Item: 3762 by _kevin at hpcvbbs.cv.hp.com 
  3. Author: [Kevin Jessup] 
  4.   Subj: HP48SX DIGITAL FILTER DEMO 
  5.   Date: Wed Jul 24 1991 
  6.  
  7. Hello again! 
  8.  
  9. I recently got my hands on a copy of MathCAD.  I was playing 
  10. around with its FFTs and DSP filtering routines when I decided 
  11. that after paying 275 bucks for my 48, it had damn well better be 
  12. able to do the same thing. :-)  I immediately wasted 3 hours coding 
  13. up the routines you'll see below.  What a time-saver the 48SX is!! 
  14.  
  15. The routines do nothing really usefull.  It's just a demo of sorts. 
  16. Here is the sequence when you press the DEMO key... 
  17.  
  18. 1.) DEMO will use a predefined function (sin(x) is used, 
  19.     but you can change it) to generate an array of x and y 
  20.     coordinates using the summation function. 
  21.  
  22. 2.) A scatter plot of the data is drawn. 
  23.  
  24. 3.) Noise is added to the data. 
  25.  
  26. 4.) The scatter plot is redrawn. 
  27.  
  28. 5.) The data is filtered. 
  29.  
  30. 6.) The scatter plot is redrawn. 
  31.  
  32. 7.) Repeat steps 5 and 6 four more times. 
  33.  
  34. 8.) The display is frozen.  Press ON to quit. 
  35.  
  36. 9.) If you want to filter the same data a few more times, 
  37.     just press FDMO till you are satisfied. 
  38.  
  39. Now just one damn minute here before all you DSP gurus grab 
  40. your flame throwers! :-)  MY AREA OF EXPERTISE IS NOT DSP! 
  41. My knowledge of DSP is somewhere between none and very 
  42. little and my knowledge of analog electronics does not go 
  43. beyond the typical undergraduate stuff.  I was just playing 
  44. around. 
  45.  
  46. Now that you know that, feel free to modify the main filter 
  47. algorithm (called SMOOTH) to use whatever method works best 
  48. and/or fastest for you.  All I am doing is providing a bit of a 
  49. front end and user interface for demo purposes.  I'm not even 
  50. sure if the 48 could ever be put to use where the sample rate 
  51. is so high and the data quality so poor that such algorithms are 
  52. needed.  Let's just say that this is for educational purposes only. 
  53. The best thing that can come out of this posting is that those 
  54. who really know how to do this stuff will post some of their 
  55. routines! 
  56.  
  57. Perhaps such routines have already been posted.  If so, sorry about 
  58. the wasted bandwidth. 
  59.  
  60. One last item of interest.  If I run the BUILD routine seperately 
  61. in a directory just off of HOME (the path is {HOME DSP}), the BUILD 
  62. routine takes about 130 seconds.  If I copy the entire directory 
  63. down a level (the path is {HOME TEMP DSP}) it takes about 50 
  64. seconds.  This is repeatable.  Yet the SMOOTH algorithm takes an 
  65. identical amount of time in both directories.  What is going on 
  66. here??? 
  67.  
  68. Happy filtering! 
  69.  
  70. Kevin Jessup 
  71. Home:   (414)355-9752 
  72. Office: (414)362-2020 
  73. BBS:    (414)362-2020 after 6PM CST 
  74.